Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanan/activate validators #267

Merged
merged 5 commits into from
Oct 12, 2023
Merged

Hanan/activate validators #267

merged 5 commits into from
Oct 12, 2023

Conversation

HananINouman
Copy link
Contributor

Summary

Activate validators section.

Screenshots

Screenshot 2023-10-07 at 8 19 49 PM

ticket:
#266

@netlify
Copy link

netlify bot commented Oct 7, 2023

Deploy Preview for obol-docs ready!

Name Link
🔨 Latest commit 62d543f
🔍 Latest deploy log https://app.netlify.com/sites/obol-docs/deploys/6527e43aa579f200084872b1
😎 Deploy Preview https://deploy-preview-267--obol-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@OisinKyne OisinKyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super confident this is right from eyeballing, we should test it, and then if we're happy, merge :) (If you've already tested it then I guess my bad 😅 )


## Activate the DVs using the deposit contract

This guide will in future cover activating the deposit data from a lock file.
In order to activate cluster validator, the cluster operator can retrieve the validator associated deposit data and call deposit from the deposit contract.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In order to activate cluster validator, the cluster operator can retrieve the validator associated deposit data and call deposit from the deposit contract.
In order to activate the distributed validators, the cluster operator can retrieve the validators' associated deposit data from the lock file and use it to craft transactions to the `deposit()` method on the deposit contract.

Comment on lines 121 to 123
const principal = BigNumber.from(validatorDepositData.amount); // 32 ethers

const TX_VALUE = principal.mul(WEI_FACTOR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this? I would have thought principal coming from our API ends up being "32000000000". So multiplying by a further 18 decimals leads to too many decimals and too high a value?

I would imagine we multiply by 10 ** 9 to get the outcome we want.

Here's a calculator to help test https://eth-converter.com/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Fixing it

@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem';
The Obol-SDK is in an alpha state and should be used with caution.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Obol-SDK is in an alpha state and should be used with caution.
The Obol-SDK is in an alpha state and should be used with caution, particularly on mainnet.

@OisinKyne OisinKyne merged commit 84b254e into main Oct 12, 2023
5 checks passed
@OisinKyne OisinKyne deleted the Hanan/activate-validators branch October 12, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants